{% extends "template/addEdit.volt" %}

{% block title %}增加提醒人{% endblock %}

{% block content %}
    <table class="single">
        <tr>
            <th>邮箱:</th>
            <td><input type="text" value="" name="mail" data-valid="text" /></td>
        </tr>
        <tr>
            <th>用户:</th>
            <td><select name="user">
					{% for user in userList %}
						<option value="{{ user['id'] }}">{{ user['nickname'] }}</option>
					{% endfor %}	
				</select></td>
        </tr>

    </table>
{% endblock %}

{% block jscontent %}
    <script>
        function addAction() {
            if(DataValidBinder.valid())
            {
                var params="action_key=ACTION_ADD&"+$("form").serialize();
                $.post("/notification/doAddMail",params, function (result) {
                   
                    FAlert(result.message);
                });
            }
        }
    </script>
{% endblock %}
